﻿#pragma once
#define Image_BackGround				1
#define Button_EditorsSave				2
#define Static_EditorsWidth				11
#define EditBox_EditorsWidth			12
#define Static_EditorsHeight			13
#define EditBox_EditorsHeight			14
#define Static_EditorsOffsetX			15
#define EditBox_EditorsOffsetX			16
#define Static_EditorsOffsetY			17
#define EditBox_EditorsOffsetY			18

class GuiEditors : public CDXUTDialog
{
public:
	GuiEditors();
	~GuiEditors(){}

	void SetEditLock(bool bLock) { m_bEditLock = bLock; }
	bool GetEditLock() { return m_bEditLock; }
	void SetEditControl(CDXUTControl* pEditControl) { m_pEditControl = pEditControl; }
	CDXUTControl* GetEditControl() { return m_pEditControl; }

	void SetEditorsValue(int width, int height, int offsetX, int offsetY);
	void SyncBorder();

	void SaveChangeToGFX();
	void OnEvent(UINT nEvent, int nControlID, CDXUTControl* pControl);
	bool MsgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);

private:
	CDXUTControl* m_pEditControl;
	bool m_bEditLock;
};